package com.etcn.modules.busi.order.dao;

import com.etcn.common.dao.ICrudDao;
import com.etcn.modules.busi.order.pojo.WmOrder;


/**
 * 订单dao
 * @author guozc
 * @date 2018-03-19
 */
public interface IWmOrderDao extends ICrudDao<WmOrder>{

    /**
     * 根据订单号获取订单信息
     * @param orderSn
     * @return
     * @throws Exception
     */
    WmOrder getByOrderSn(String orderSn) throws Exception;
    
    /**
     * 支付回调更新订单信息
     */
    void payUpdate(WmOrder wmOrder) throws Exception;
    
    /**
     * 根据订单号更新
     */
    void updateByOrderSn(WmOrder wmOrder) throws Exception;
}